cmake_minimum_required(VERSION 3.28)

if (MSVC)
    add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
endif ()

project(threadPool)

set(CMAKE_CXX_STANDARD 17)

# 设置输出路径
set(target_output_path ${CMAKE_HOME_DIRECTORY}/target/bin/${CMAKE_BUILD_TYPE})

add_subdirectory(src)

# 设置连接池可执行文件的输出路径
set_target_properties(${PROJECT_NAME} PROPERTIES
        RUNTIME_OUTPUT_DIRECTORY ${target_output_path}
)